<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--       
*     Copyright © 2008 Sun Microsystems, Inc. All rights reserved.
*     Use is subject to license terms.
-->
<html>
<head>
<title>Building a JavaFX Project</title>
	<link rel="StyleSheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
</head>
<body>
<h2>Building a JavaFX Project</h2>
<p> <small><a href="#seealso">See Also</a>&nbsp; </small> 
<p>When you build a JavaFX project, the IDE calls the corresponding target in the project's
	Ant build script. The IDE compiles the source files and generates the packaged
	build output, such as a JAR file or WAR file. You can build the main project and all of its required projects, or build any 
  project individually.
<p><b>To build the main project and its required projects:</b> 
<ul>
  <li>Choose Run &gt; Build 
    Main Project (F11).</li>
	 <p>The IDE displays the Ant output and any compilation errors in the Output window.
<ul class="note">
<li>You can double-click any error to go to the location in the source code where
		the error occurred.
</ul>
</ul>
<p><b>To build an individual project and its required projects:</b> 
<ul>
  <li>Right-click the project's node in the Projects window and choose Build Project. </li>
  <p>The IDE displays the Ant output and any compilation errors in the Output window.
<ul class="note">
<li>You can double-click any error to go to the location in the source code where
		the error occurred. 
</ul>
</ul>

<p><b>To stop building a project:</b> 
<ul>
  <li>Choose Build &gt; Stop Build/Run from the main menu.</li>
</ul>

        <ul class="note">
        <li>For JavaFX project that have a main class specified, the IDE automatically copies 
        any JAR files on the project's classpath to the <tt>dist/lib</tt> folder 
        when you build the project. The IDE also adds each of the JAR files 
        to the Class-Path element in the application JAR's <tt>manifest.mf</tt> 
        file. This simplifies running the application outside the IDE.</li>
        </ul>

  <dl> 
      <dt><a name="seealso">See also</a></dt>
  <!-- <dd><a href="comp_quickref.html">Building Tasks: Quick Reference</a></dd>  
      <dd><a href="javafx_comp_file.html">Compiling a Single File</a></dd>
      <dd><a href="comp_jar.html">Building a JAR File</a></dd> 
   -->
      <dd><a href="javafx_comp_classpath.html">Managing the Classpath of JavaFX Projects</a></dd>
      <dd><a href="../run/javafx_run_args.html">Setting the Main JavaFX Class and Runtime Arguments</a></dd>    
  </dl>

<hr>
<small><a href="../credits.html">Legal Notices</a></small> 

<table border="0" cellpadding="20">
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
</table></body>
</html>
